package com.ruitu.health_1.mvp.model;

import com.ruitu.arad.base.BaseModel;
import com.ruitu.health_1.dao.http.APIRetrofit;
import com.ruitu.router_module.bean.BaseResult2;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

public class CommentModel {
    public static class CommentM extends BaseModel {
        public Observable<BaseResult2> comment(RequestBody body) {
            return APIRetrofit.getDefault().comment(body)
                    .subscribeOn(Schedulers.io())
                    .observeOn(AndroidSchedulers.mainThread());
        }
        public Observable<BaseResult2<String>> multiUpload(MultipartBody body) {
            return APIRetrofit.getDefault().multiUpload(body)
                    .subscribeOn(Schedulers.io())
                    .observeOn(AndroidSchedulers.mainThread());
        }
    }

}
